file(GLOB SOURCES *.cpp)
foreach (FILE ${SOURCES})
    get_filename_component(FILE_NAME ${FILE} NAME_WE)
    add_executable(${FILE_NAME} ${FILE})
endforeach ()